package org.mili.ticketeer.ui.meeting;

import org.mili.ticketeer.dto.Meeting;
import org.mili.ticketeer.service.MeetingService;
import org.mili.application.service.ServiceException;
import org.mili.application.service.ServiceFactory;
import org.mili.application.ui.Form;
import org.mili.application.ui.SearchPanel;

/**
 * Created with IntelliJ IDEA.
 * User: papa
 * Date: 20.07.13
 * Time: 14:10
 * To change this template use File | Settings | File Templates.
 */
public class MeetingSearchPanel extends SearchPanel<Meeting> {
    private static MeetingService meetingService = ServiceFactory.getService(MeetingService.class);

    public MeetingSearchPanel() {
        super(new MeetingTableModel());
    }

    @Override
    public void formChanged(Form form) {
        getTableModel().update();
    }

    @Override
    public Meeting create() {
        return new Meeting();
    }

    @Override
    public void delete(Meeting element) throws ServiceException {
        //
    }
}
